package com.example.evaluate.model;

import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.ArrayList;

@Setter
@Getter
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
/**
 * 虽然这是叫teacher类  但这不是真的老师
 * 作为第一版本设计的弥补
 * 这个类其实是是老师教的课程信息
 * */
public class Teacher {
    private Integer teacherId;  //老师教的课程ID
    private String teacherName; //老师姓名

    private String teacherBatch;        //批次
    private String teacherDepartment;   //部门
    private String teacherCourse;       //课程
    private String teacherCourseClassification; //课程分类
    private String teacherParticipant;  //参评对象
    private Integer teacherEvaluateFlag;   //是否已经评价  0否 1是
    private Integer teacherPoint;   //分数

    private Question teacherQuestion;


    /**
     * 新建老师的时候只需要填这几项就行
     *
     * */
    public Teacher(String teacherName, String teacherBatch, String teacherDepartment, String teacherCourse, String teacherCourseClassification, String teacherParticipant) {
        this.teacherName = teacherName;
        this.teacherBatch = teacherBatch;
        this.teacherDepartment = teacherDepartment;
        this.teacherCourse = teacherCourse;
        this.teacherCourseClassification = teacherCourseClassification;
        this.teacherParticipant = teacherParticipant;
        this.teacherEvaluateFlag = 0;
    }

    public Teacher(Integer teacherId, Integer teacherEvaluateFlag, Integer teacherPoint) {
        this.teacherId = teacherId;
        this.teacherEvaluateFlag = teacherEvaluateFlag;
        this.teacherPoint = teacherPoint;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
